/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.investigateevidence.transfer.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 描述: 案件移交记录表 case_transfer_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 *
 * @author framework generator
 * @date 2022年12月08日
 */
@Table(name = "upcase.case_transfer_record")
@Data
public class CaseTransferRecord implements Serializable {
    /**
     * id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 案件阶段编码
     */
    @Column(name = "stage_code")
    private String stageCode;

    /**
     * 移交单位名称
     */
    @Column(name = "unit_name")
    private String unitName;

    /**
     * 状态
     */
    @Column(name = "status")
    private String status;

    /**
     * 创建人
     */
    @Column(name = "creator")
    private String creator;

    /**
     * 创建时间
     */
    @Column(name = "created")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date created;

    /**
     * 修改人
     */
    @Column(name = "updater")
    private String updater;

    /**
     * 修改时间
     */
    @Column(name = "updated")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updated;

    /**
     * 移交类型：1-协查协办，2-案件移交，3-案源移交
     */
    @Column(name = "transfer_type")
    @NotBlank(message = "移交类型不能为空")
    private String transferType;

    /**
     * 附件链接（协查协办使用）
     */
    @Column(name = "file_url")
    private String fileUrl;

    /**
     * 发送uid(协查协办详情)
     */
    @Column(name = "send_uid")
    private String sendUid;

    /**
     * 部门关联uid（协查协办详情）
     */
    @Column(name = "dept_rel_uid")
    private String deptRelUid;

    /**
     * 案源id
     */
    @Column(name = "case_source_id")
    private String caseSourceId;

    /**
     * 是否删除：0-否，1-是
     */
    @Column(name = "deleted")
    private String deleted;

    /**
     * 审批完成时间
     */
    @Column(name = "approval_finish_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date approvalFinishTime;

    private static final long serialVersionUID = 1L;

}